using FlowCanvas.Nodes;
using Yoozoo.Gameplay.Liberty.AI;
using Yoozoo.Gta.Common;

namespace Yoozoo.Gameplay.Liberty.Nodes
{
    public class GtaTaskUpdate: CallableActionNode<string,int>
    {
        public int TaskType;
 
        public override void Invoke(string counterName, int score)
        {
            if (counterName == LibertyAIUtils.PLAYER_AI_ID.ToString())
            {
                ResidentHandler.Inst.GetFunction("CityLuaFunction.OnGtaTaskProgressUpdate").Action(TaskType, score);
            }
        }
    }
}